package com.wzdigit.wms.raw.mapper.transfer;

import com.wzdigit.framework.orm.mybatis.MyBatisRepository;
import com.wzdigit.wms.basic.domain.transfer.TransferDtl;
import com.wzdigit.wms.basic.domain.transfer.TransferHeader;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created by zyf on 2021/8/12 17:19
 */
@MyBatisRepository
public interface TransferAutoMapper {
    //更新Goods
    int updateTransferGoods(@Param("goodsIds") List<Integer> goodsIds,@Param("whsId")  Integer whsId,
                            @Param("loginName")  String loginName,@Param("modfiyTime")  Date modfiyTime,
                            @Param("transferDtl") TransferDtl transferDtl);

    //更新主档状态关闭
    int updateHeader(@Param("headerId")  Integer headerId,@Param("status")  Integer status,
                     @Param("loginName")  String loginName,@Param("modfiyTime")  Date modfiyTime);

    //更新明细状态关闭
    int updateDtl(@Param("headerId")  Integer headerId,@Param("status")  Integer status,
                  @Param("loginName")  String loginName,@Param("modfiyTime")  Date modfiyTime);
}
